package com.bristua.common.controller;

import com.bristua.common.bean.Result;
import com.bristua.common.biz.UpdateReturnScaleBiz;
import com.bristua.common.utils.HandleResultUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/4/29.
 */
@RestController
@Api(value="设置返利比例",tags={"设置返利比例"})
public class UpdateReturnScaleController {
    @Autowired
    private UpdateReturnScaleBiz updateReturnScaleBiz;
    @ApiOperation("设置返利比例")
    @PostMapping(value="/admin/system/set/scale/{scale}")
    public Result updateReturnScale(@PathVariable(value = "scale") String scale){
        updateReturnScaleBiz.updateReturnScale(scale);
        return HandleResultUtil.updateSuccessResult();
    }
}
